package com.sq.partner.manager.dao;

import java.math.BigDecimal;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.ActirationCardDifinition;
import com.sq.partner.manager.util.Page;

public interface ArtirationCardDao extends BaseDao{

	public Integer getTotalActirationCardDifinition(Map<String, Object> map) throws Exception;

	public Page<ActirationCardDifinition> queryPage(Page<ActirationCardDifinition> page) throws Exception;
	/**
	 * 查询卡模板信息
	 * @param templatid
	 * @return
	 * @throws Exception
	 */
	public ActirationCardDifinition query(ActirationCardDifinition carinfo) throws Exception;
	/**
	 * 查询卡模板信息
	 * @param carinfo
	 * @return
	 * @throws Exception
	 */
	public boolean insert(ActirationCardDifinition carinfo) throws Exception;
	/**
	 * 修改卡模板信息
	 * @param carinfo
	 * @return
	 * @throws Exception
	 */
	public boolean update(ActirationCardDifinition carinfo) throws Exception;
	/**
	 * 删除卡模板信息
	 * @param templatid
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String templatid) throws Exception;
	/**
	 * 根据名称查询同名的卡定义名称count
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public Integer queryNameCount(String name) throws Exception;
	/**
	 * 查询方案名称
	 * @param carinfo
	 * @return
	 * @throws Exception
	 */
	public String queryPlanName (ActirationCardDifinition carinfo)throws Exception;
	/**
	 * 查询方案下所有险种固定总保费
	 * @param planNo
	 * @return
	 * @throws Exception
	 */
	public BigDecimal queryAllpremium(String planNo) throws Exception;
}
